import request from "@/utils/request"

// list
export function getStatisticsList(data, skip, limit) {
  return request({
    url: `/dataStatistic/page/${skip}/${limit}`,
    method: "post",
    data
  })
}

// add
export function getStatisticsSave(data) {
  return request({
    url: `/dataStatistic/save`,
    method: "post",
    data
  })
}

// info
export function getStatisticsInfo(id) {
  return request({
    url: `/dataStatistic/${id}`,
    method: "get",
  })
}

// info
export function getStatisticsDel(id) {
  return request({
    url: `/dataStatistic/${id}`,
    method: "delete",
  })
}

// result
export function getStatisticsReport(id) {
  return request({
    url: `/dataStatistic/getReport/${id}`,
    method: "post",
  })
}
// start
export function getStatisticsStart(id) {
  return request({
    url: `/dataStatistic/start/${id}`,
    method: "post",
  })
}
